package com.newbee.sustainability.plugin.util;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

/**
 * Description：查询条件、分页条件等
 * Date：2018/12/27
 * Time：11:38
 *
 * @author Likailun
 */
public class Condition {
    private Map<String, String> where;
    private String orderBy;
    private String groupBy;

    private String limit;

    public Condition whereCase(Map<String, String> where) {
        this.where = where;
        return this;
    }

    public Condition orderByCase(String orderBy) {
        this.orderBy = orderBy;
        return this;
    }

    public Condition groupByCase(String groupBy) {
        this.groupBy = groupBy;
        return this;
    }

    public Condition limitCase(String limit) {
        this.limit = limit;
        return this;
    }

    public Map<String, String> getWhere() {
        return where;
    }

    public void setWhere(Map<String, String> where) {
        this.where = where;
    }

    public String getOrderBy() {
        return orderBy;
    }

    public void setOrderBy(String orderBy) {
        this.orderBy = orderBy;
    }

    public String getGroupBy() {
        return groupBy;
    }

    public void setGroupBy(String groupBy) {
        this.groupBy = groupBy;
    }

    public String getLimit() {
        return limit;
    }

    public void setLimit(String limit) {
        this.limit = limit;
    }
}
